class ParkingSystem {
private:
    int big, small, medium;
public:
    ParkingSystem(int big, int medium, int small) {
        this->big = big;
        this->small = small;
        this->medium = medium;
    }
    
    bool addCar(int carType) {
        switch(carType){
            case 1:{
                if(big){
                    big--;
                    return true;
                }
                return false;
            }
            case 2:{
                if(medium){
                    medium--;
                    return true;
                }
                return false;
            }
            case 3:{
                if(small){
                    small--;
                    return true;
                }
                return false;
            }
        }
        return false;
    }
};

//2021.3.19 
